// components/test/test.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    text: {
      type:String,
      value: '一个默认值'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    imgSrcs: [
      "https://tse1-mm.cn.bing.net/th/id/R-C.cd6e682e8366b61c44a93b8e13e70b93?rik=eAIvCsG7XgSuYw&riu=http%3a%2f%2fwww.zdyrs.com%2fuploadfile%2f2019%2f0422%2f20190422054136226.jpg&ehk=GSJVwusY3nYtCakQu0drHFGpvVZUvmPlof8hZJLHN3I%3d&risl=&pid=ImgRaw&r=0",
      "https://tse1-mm.cn.bing.net/th/id/R-C.6ceb36d15fac890eeff389ac78b0a282?rik=E0obOUUD6mWz7g&riu=http%3a%2f%2fimg.121xia.com%2fupload%2f2020-1%2f202012111319007190.jpg&ehk=W8oWp3D8%2boUbksapEPiq1SiwW57vTM8XoX844QbqxXI%3d&risl=&pid=ImgRaw&r=0",
      "https://tse1-mm.cn.bing.net/th/id/R-C.cf3ae1e2b30d7335e7479ea993080c9d?rik=iY0%2bmduODaYgBg&riu=http%3a%2f%2fimg.coozhi.com%2fupload%2fimage%2f201905%2f10161506-38700.jpg.gif&ehk=Yf%2btA0jyu9g7f%2fBb0ooFibDPTBmqri2eFRyYZdyAaRU%3d&risl=&pid=ImgRaw&r=0"
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {

  },
  lifetimes: {
    created() {
      console.log('组件被创建了')
      console.log(this.data)
    },
    attached() {
      console.log('组件被挂载了')
    },
    detached() {
      console.log('组件被卸载了')
    }
  }
})